/*
 * CutStackFilterPanel.java
 *
 * Created on December 1, 2008
 * Written by Eran Gilon
 * 
 * This panel will display two fields to let
 *   the user select the number of pages across (columns)
 *   and pages down (rows) on the sheet
 */

package net.anzix.jimposition.transformations;


public class CutStackFilterPanel extends javax.swing.JPanel {
	/** Creates new form CutStackFilterPanel*/
	public CutStackFilterPanel() {
		initComponents();
	}

	public javax.swing.JTextField getNumRows() {
		return numRows;
	}

	public void setNumRows(javax.swing.JTextField numRows) {
		this.numRows = numRows;
	}
	public javax.swing.JTextField getNumColumns() {
		return numColumns;
	}

	public void setNumColumns(javax.swing.JTextField numColumns) {
		this.numColumns = numColumns;
	}
    
	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
	private void initComponents() {
		jLabel1 = new javax.swing.JLabel();
		numColumns = new javax.swing.JTextField();
		numColumns .setText("2");
		jLabel2 = new javax.swing.JLabel();
		numRows = new javax.swing.JTextField();
		numRows.setText("1");

		jLabel1.setText("Number of Columns:");
		jLabel2.setText("Number of Rows:");


		org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
		this.setLayout(layout);
		layout.setHorizontalGroup(
				layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(layout.createSequentialGroup()
				.add(jLabel1)
				.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
				.add(numColumns, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 125, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
				.add(layout.createSequentialGroup()
				.add(jLabel2)
				.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
				.add(numRows , org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 125, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
				); 
		layout.setVerticalGroup(
				layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
				.add(layout.createSequentialGroup()
				.add(jLabel1)
				.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
				.add(jLabel2) )
				.add(layout.createSequentialGroup()
				.add(numColumns , org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
				.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
				.add(numRows , org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
				); 
	}// </editor-fold>//GEN-END:initComponents
    
	// Variables declaration - do not modify//GEN-BEGIN:variables
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JTextField numRows;
	private javax.swing.JTextField numColumns;
	// End of variables declaration//GEN-END:variables
    
}
